package com.hefeng.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hefeng.example.domain.CustomerManualWorkOrder;
import com.hefeng.example.domain.DeviceAutomaticAlarmWorkOrder;
import com.hefeng.example.domain.WorkOrderDistribution;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 维保人员工单service
 */
@Transactional
public interface WorkUserService extends IService<WorkOrderDistribution> {


    /**
     * 转派工单
     *
     * @param
     * @return
     */
    Page<CustomerManualWorkOrder> getList(@Param("dispatcher") String dispatcher, @Param("current") long current, @Param("size") long size);


    /**
     * 维保人员处理中工单列表
     *
     * @param dispatcher
     * @return
     */
    List<Map> disposeingWork(@Param("dispatcher") String dispatcher);

    List<Map> disposeingManualWork(@Param("dispatcher") String dispatcher);

    /**
     * 维保人员逾期工单列表
     *
     * @param dispatcher
     * @return
     */
    List<Map> LateWork(@Param("dispatcher") String dispatcher);

    List<Map> LateWorkT(@Param("dispatcher") String dispatcher);

    /**
     * 维保已完成工单
     *
     * @param dispatcher
     * @return
     */
    List<Map> finishWork(@Param("dispatcher") String dispatcher);

    List<Map> finishWorkT(@Param("dispatcher") String dispatcher);


    int updateAlarm(DeviceAutomaticAlarmWorkOrder deviceAutomaticAlarmWorkOrder);


}
